package org.yelongframework.excel.data.fill.sheet.mode.simple;

import org.yelongframework.excel.data.fill.sheet.SheetDataFillException;
import org.yelongframework.excel.sheet.ExcelSheet;

/**
 * 默认实现
 * 
 * @since 1.0.0
 */
public class DefaultSimpleSheetDataFiller extends AbstractSimpleSheetDataFiller {

	// ==================================================执行填充==================================================

	@Override
	protected void doDataFill(ExcelSheet sheet, SimpleSheetDataFillScheme sheetDataFillProp)
			throws SheetDataFillException {
		SimpleSheetDataFillDataSupplier dataSupplier = sheetDataFillProp.getDataSupplier();
		Object value = dataSupplier.get0();
		sheet.setValue(sheetDataFillProp.getRowIndex(), sheetDataFillProp.getColumnIndex(), value);
	}

}
